/*生成50个 0-9999之间的随机数，要求不能有重复的*/


import java.util.HashSet;
import java.util.Random;

public class fifty {
    public static void main(String[] args) {
        Random r = new Random();
        HashSet<Integer> number = new HashSet<>();
        while (number.size()<100) {
            int num = r.nextInt(9999);
            number.add(num);
        }
            System.out.println(number);
    }
}
